import VanTabbar from '@/views/VanTabbar.vue'
import VanTabbarMain from '@/views/VanTabbarMain.vue'
// 二级路由
import Friends from '@/views/Seconds/MyFriends.vue'
import MyHome from '@/views/Seconds/MyHome.vue'
import MySearch from '@/views/Seconds/MySearch.vue'
import MySetting from '@/views/Seconds/MySetting.vue'

const routes = [
  { name: 'vantabbarmain', path: '/vantabbarmain', component: VanTabbarMain },
  {
    name: 'vantabbar',
    path: '/',
    component: VanTabbar,
    redirect:'/home',
    children: [
      { name: 'home', path: 'home', component: MyHome },
      { name: 'friends', path: 'friends', component: Friends },
      { name: 'search', path: 'search', component: MySearch },
      { name: 'setting', path: 'setting', component: MySetting },
    ],
  },
]
export default routes
